import 'dart:io';

import 'package:love_newf/app/com/base/app.dart';
import 'package:love_newf/app/com/http/http_request.dart';
import 'package:flutter/services.dart';
import 'package:liuxlcommon/util/string_utils.dart';
import 'package:love_newf/app/com/base/key_mix.dart';

class FaceRecognitionPlugin {
  static const MethodChannel _channel = MethodChannel('FaceRecognitionPlugin');

  static get init async {
    return await _channel.invokeMethod("init");
  }

  static get destroy async {
    return await _channel.invokeMethod("destroy");
  }

  static dynamic takeFace(access_token, name, code) async {
    return await _channel.invokeMethod("takeFace", {
      "access_token": access_token,
      "name": name,
      "code": code,
    });
  }
}
